
--#include "data\functions\Activity\Boss\BossCommon.lua" once

MonDieDispatcher.BossDie = function (monster,sysarg,monId)
	OnBossDead( monster,sysarg,monId )
end


MonMobDispatcher.BossCreate = function ( monster, monId, sceneId, x,y )
	OnBossCreate(monster, monId, sceneId,x,y)
end


for idx, bossTab in ipairs(BossConfig.Boss) do
	MonDieDispatcher.register(bossTab.entityId, MonDieDispatcher.BossDie)
	MonMobDispatcher.register(bossTab.entityId, MonMobDispatcher.BossCreate)
end


--#include "data\functions\Activity\OpenServer\OpenServerBoss.lua" once


MonDieDispatcher.OpenServerBossDie = function (monster,sysarg,monId)
    OpenServerBossDie( monster,sysarg,monId )
end

for idx, bossTab in ipairs(OpenServerCfg.Boss) do
    for _ , v in ipairs(bossTab.bossIds) do    
        MonDieDispatcher.register(v, MonDieDispatcher.OpenServerBossDie)
    end
end